<%@ page contentType="text/html;charset=gb2312"%> 
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<%@ page import="java.sql.*"%>
<jsp:useBean id="data" scope="page" class="topicdata.dataconn"/> 
<%
	String UserID= request.getParameter("UserID");
	String password= request.getParameter("password");
	String Tel= request.getParameter("Tel");
	String sql;
	sql = "insert into Member(MemID,MemPassWord,MemTel) values('"+UserID+"','"+password+"','"+Tel+"')";
	data.executeUpdate(sql);
  	data.closeStmt(); 
  	data.closeConn();    
%>
<%
     session.setAttribute("id",UserID);	
	  session.setAttribute("isLog","ok");
	   response.sendRedirect("welcome.jsp");
%>